﻿namespace BooTasky

import System
import System.Collections.Generic

class TaskComparer( IComparer[of ITask] ):
"""Description of TaskComparer"""
	def Compare( task1 as ITask, task2 as ITask ):
		result = task1.CompareTo( task2 )
		if result==0:
			result = task1.Name.CompareTo( task2.Name )
		else:
			result = 0-result
		return result
